package com.codepoem.designpattern.simplefactory

/**
 * 除法运算类
 */
class OperationDiv() : Operation() {

    override fun getResult(): Double {
        if (numberB == 0.0) {
            throw Exception("can not divide by zero~");
        }
        var result = numberA / numberB
        return result
    }
}